package com.tencent.essbasic.api;

import com.tencent.essbasic.common.CreateFlowUtils;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.essbasic.v20210526.EssbasicClient;
import com.tencentcloudapi.essbasic.v20210526.models.Agent;
import com.tencentcloudapi.essbasic.v20210526.models.DescribeUserFlowTypeRequest;
import com.tencentcloudapi.essbasic.v20210526.models.DescribeUserFlowTypeResponse;

public class DescribeUserFlowType {

    public static DescribeUserFlowTypeResponse describeUserFlowType(Agent agent) {
        try {
            // 实例化一个client
            EssbasicClient client = CreateFlowUtils.initClient();
            DescribeUserFlowTypeRequest req = new DescribeUserFlowTypeRequest();
            req.setAgent(agent);
            return client.DescribeUserFlowType(req);
        } catch (TencentCloudSDKException e) {
            System.out.println(e.toString());
        }
        return null;
    }

    public static void main(String[] args) {
        Agent agent = CreateFlowUtils.setAgent();
        DescribeUserFlowTypeResponse describeUserFlowTypeResponse = describeUserFlowType(agent);
        System.out.println(describeUserFlowTypeResponse);
    }

}
